
#include <stdio.h>
#include <stdlib.h>

void main()
{
	int n,i,t=0;
	printf("Enter N\n");
	scanf("%d", &n);

	for(i=0;i<32;i++)
	{
		t += n & 1;
		n=n>>1;
	}

	printf("Number of single-bit - %d\n", t);

	system("PAUSE");
}